package online.hxstar.cloud.conmuser.stream.bind;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @author xinghu
 * @version 1.0
 * @date 2019/11/12 11:37 上午
 */
public interface HelloBinding {

	String GREETING_INPUT = "greetings_input";

	String GREETINGS_OUTPUT = "greetings_output";

	/**
	 * 输入
	 *
	 * @return ""
	 */
	@Input(GREETING_INPUT)
	SubscribableChannel greetingInPut();

	/**
	 * 发送问候信息
	 *
	 * @return ""
	 */
	@Output(GREETINGS_OUTPUT)
	MessageChannel greetingOutPut();
}
